﻿using com.iot.core.annotation;
using com.iot.core.data;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;

namespace com.iot.ht.Controllers.htmenu.data
{
    [Schema(Name = "菜单Dto", Description ="")]
    public class HtMenuDto : BaseDto
    {




        [Comment("父编号")]
        [Schema(Name = "父编号", Description = "")]
        public long Pid { get; set; }


        [Comment("平台编号")]
        [Schema(Name = "平台编号", Description = "")]
        public long HtplatId { get; set; }


        [Comment("菜单代码")]
        [Schema(Name = "菜单代码", Description = "")]
        [MaxLength(50)]
        public string Code { get; set; } = "";


        [Comment("菜单名称")]
        [Schema(Name = "菜单名称", Description = "")]
        [Required(ErrorMessage = "{0}不能为空")]
        [MaxLength(50)]
        public string Name { get; set; } = "";


        [Comment("类型")]
        [Schema(Name = "类型", Description = "菜单、页面、权限")]
        [MaxLength(10)]
        public string Lx { get; set; } = "";


        [Comment("页面编号")]
        [Schema(Name = "页面编号", Description = "")]
        public long HtpageId { get; set; }


        [Comment("Url编号")]
        [Schema(Name = "Url编号", Description = "")]
        public long HtactionId { get; set; }


        [Comment("图标")]
        [Schema(Name = "图标", Description = "")]
        public string Imgurl { get; set; } = "";


        [Comment("参数1")]
        [Schema(Name = "参数1", Description = "")]
        [MaxLength(50)]
        public string P1 { get; set; } = "";


        [Comment("参数2")]
        [Schema(Name = "参数2", Description = "")]
        [MaxLength(50)]
        public string P2 { get; set; } = "";


        [Comment("参数3")]
        [Schema(Name = "参数3", Description = "")]
        [MaxLength(50)]
        public string P3 { get; set; } = "";


        [Comment("参数4")]
        [Schema(Name = "参数4", Description = "")]
        [MaxLength(50)]
        public string P4 { get; set; } = "";


        [Comment("排序号")]
        [Schema(Name = "排序号", Description = "")]
        public long Sortno { get; set; }


        [Comment("备注")]
        [Schema(Name = "备注", Description = "")]
        public string Memo { get; set; } = "";

    }
}
